<?php
	$funeralhome_id = $this->VAS_fh_id;
	$localeId = $this->fh['locale_id'];
	$branch_number = $this->branch_number;
 ?>
<ul class="basictab">
<li><a href="/index/funeralhome/branch_number/<?php echo $branch_number?>">Profile</a></li>
<li class="selected"><a href="/index/funeralhomemerchandise/branch_number/<?php echo $branch_number?>">Priority Merchandise</a></li>
</ul>
<form method="POST" action="/index/funeralhomemerchandise">
<div class="basictabdiv">
<input type=hidden name="cartXML" id="cartXML">
<input type=hidden name="locale_id" value="<?php echo  $localeId?>">
<input type=hidden name="funeralhome_id" value="<?php echo  $funeralhome_id?>">
<input type=hidden name="branch_number" value="<?php echo  $branch_number?>">
<div  class="tundra">
    <h1>Full Merchandise List</h1>
    <div class="gridContainer">
        <table id="catalogGrid_id" 
        		jsId="dCatalogGrid" 
        		dojoType="dojox.grid.DataGrid"
               	query="{ id: '*' }" 
               	store="catalogStore">
            <thead>
                <tr>
					<th field="id" width="80px" >Price List ID</th>
					<th field="name" width="auto">Item Name</th>
					<th field="price" width="80px">Price</th>
                </tr>
            </thead>
        </table>
    </div>
    <div id="gridButtons">
    <button id="btnAdd" dojoType="dijit.form.Button" onClick='addSelectedItemTofeatured()' style='font-size:9pt'>Add To Featured List</button>
    </div>
</div>
<br>
<div  class="tundra">
    <h1>Featured Merchandise</h1>
    <div class="gridContainer">
        <table id="featuredGrid_id" 
        		jsId="dFeaturedGrid" 
        		dojoType="dojox.grid.DataGrid"
               	query="{ id: '*' }" 
               	store="featuredStore">
            <thead>
                <tr>
					<th field="id" width="auto" >Price List ID</th>
					<th field="name" width="auto">Item Name</th>
					<th field="price" width="auto">Price</th>
					<th field="picture" width="auto" editable="true">Picture</th>
                </tr>
            </thead>
        </table>
    </div>
    <div id="gridButtons">
    <button id="btnRmv" dojoType="dijit.form.Button" onClick='removeSelectedItemFromfeatured()' style='font-size:9pt'>Remove From Featured List</button>
    </div>
</div>
<br clear=both>
<input type=submit value="Apply Changes">
</div>
</form>
